#!/bin/bash
rm -rf app/main.h
cp app/main_template.h app/main.h
id=\"`git rev-parse HEAD`\"
sed -i "/#define GIT_COMMIT /c\#define GIT_COMMIT ${id}" app/main.h